import Layout from '@/layout'
const productRouter = {
  path: '/product/list',
  component: Layout,
  name: 'product-list',
  meta: {
    title: '产品',
    icon: 'product (3)',
    permissions: ['product.query']
  },
  children: [
    {
      path: '/product/list',
      component: () => import('@/views/product/list'),
      name: 'product-list',
      meta: {title: '产品管理', icon: 'product (3)'
        // ,permissions: ['product.query']
      },
    },

    // 注册路由
    {
      path: '/product/list',
      component: () => import('@/views/product/list'),
      name: 'product-list',
      meta: { title: '产品列表', icon: 'sub_product'},
      hidden: true
    },
    {
      path: '/product/add',
      component: () => import('@/views/product/add'),
      name: 'product-add',
      meta: { title: '新增产品', icon: 'sub_product'},
      hidden: true
    },
    {
      path: '/product/edit',
      component: () => import('@/views/product/edit'),
      name: 'product-edit',
      meta: { title: '修改产品', icon: 'sub_product'},
      hidden: true
    },{
      path: '/product/detail',
      component: () => import('@/views/product/detail'),
      name: 'product-detail',
      meta: { title: '产品详情', icon: 'sub_product'},
      hidden: true
    },
  ]
}
export default productRouter
